<% @page_title = "Column: #{ @column.name }" %>

<% content_for :header do %>
  <div class="header__actions header__actions--start">
    <%= back_link_to @column.board.name, published_board_url(@column.board), "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %>
  </div>

  <h1 class="header__title divider divider--fade full-width">
    <span class="overflow-ellipsis"><%= @page_title %></span>
  </h1>
<% end %>

<section class="cards cards--grid">
  <%= turbo_frame_tag @column, :cards do %>
    <% if @page.used? %>
      <%= with_automatic_pagination dom_id(@column, :cards), @page do %>
        <%= render "public/boards/columns/list", cards: @page.records %>
      <% end %>
    <% else %>
      <div class="blank-slate blank-slate--empty">No cards here</div>
    <% end %>
  <% end %>
</section>

<% content_for :footer do %>
  <%= render "public/footer" %>
<% end %>

